From: Andrew Cooper Date: Tue, 3 Dec 2013 08:54:12 +0000 (+0100) Subject: x86: be more power-efficient when waiting forever X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5822^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a5ca03ea2f48ceedd835ba938999dc9c5e6a4690;p=xen.git x86: be more power-efficient when waiting forever The effect is unchanged, but the processor will be spending most of its time in the C1 or C1E power state rather than C0. Signed-off-by: Andrew Cooper Acked-by: Keir Fraser --- diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index d8b3eac15a..8c355e547c 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -1448,7 +1448,8 @@ void __init do_early_page_fault(struct cpu_user_regs *regs) printk("Stack dump: "); while ( ((long)stk & ((PAGE_SIZE - 1) & ~(BYTES_PER_LONG - 1))) != 0 ) printk("%p ", _p(*stk++)); - for ( ; ; ) ; + for ( ; ; ) + halt(); } }